package zsc.ruanc.practicaltraining.model.domain;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
 * 文章统计表
 */
@Data
public class TStatistic {

//  @NotNull(message = "id不能为空")
  @Min(message = "id不能为小于0", value = 0)
  @ApiModelProperty(value = "记录id，自增主键", required = true, dataType = "int")
  private Integer id;

  @NotNull(message = "articleId不能为空")
  @Min(message = "articleId不能为小于0", value = 0)
  @ApiModelProperty(value = "文章id，外键", required = true, dataType = "int")
  private Integer articleId;

//  @NotNull(message = "hits不能为空")
  @Min(message = "hits不能为小于0", value = 0)
  @ApiModelProperty(value = "点击数", required = true, dataType = "int")
  private Integer hits;

//  @NotNull(message = "commentsNum不能为空")
  @Min(message = "commentsNum不能为小于0", value = 0)
  @ApiModelProperty(value = "评论数", required = true, dataType = "int")
  private Integer commentsNum;

//  @NotNull(message = "likes不能为空")
  @Min(message = "likes不能为小于0", value = 0)
  @ApiModelProperty(value = "点赞数", required = true, dataType = "int")
  private Integer likes;




}
